package com.zeta.eduservice.service.impl;

import com.zeta.eduservice.entity.EduStudent;
import com.zeta.eduservice.mapper.EduStudentMapper;
import com.zeta.eduservice.service.EduStudentService;
import com.zeta.eduservice.service.EduTeacherService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 学生 服务实现类
 * </p>
 *
 * @author zeta
 * @since 2020-08-16
 */
@Service
public class EduStudentServiceImpl extends ServiceImpl<EduStudentMapper, EduStudent> implements EduStudentService {

	@Autowired
	EduTeacherService teacherService;
	
	@Override
	public boolean removeById1(Serializable id) {
	    Integer result = baseMapper.deleteById(id);

	    return null != result && result > 0;
	}
}
